package com.carsa.blackberry;

/**
 * @author Nahuel Barrios.
 * @since 20/07/2010.
 * @version 1.0
 */
public class MainKeys {

    public static final String  XML_VERSION_TAG                     = "<?xml version=\"1.0\" encoding=\"UTF-8\"?>";

    // --------------- Keys's constants
    public static final int DROP_CALL_KEY_CODE = 1179648;
    public static final int ANSWER_CALL_KEY_CODE = 1114112;
    public static final int LEFT_BUTTON_KEY_CODE = 1376256;
    public static final int RIGHT_BUTTON_KEY_CODE = 1245184;
    
    // --------------- Thread's constant
    public static final String  THREAD_NAME_PERSISTENCE_QUEUE       = "PersistenceQueue";

    // --------------- Memory's constants
    public static final String PARAMETER_ARTICLE = "anArticle";
    public static final String  PARAMETER_ARTICLES_REASONS          = "articlesReasons";
    public static final String  PARAMETER_AYUDANTE_NAME             = "ayudanteName";
    public static final String PARAMETER_CLIENT_DIREC               = "clientDirec";
    public static final String  PARAMETER_CURRENT_ENTREGA           = "currentEntrega";
    public static final String  PARAMETER_DATE_TIME_MOMENT          = "dateTimeMoment";
    public static final String  PARAMETER_LEGAJO_DRIVER             = "userID";
    public static final String  PARAMETER_DRIVER_NAME               = "userName";
    public static final String  PARAMETER_GROUP_NUMBER              = "groupNumber";
    public static final String  PARAMETER_NUMERO_ENTREGA            = "numeroEntrega";
    public static final String  PARAMETER_CLIENT_NAME               = "clientName";
    public static final String  PARAMETER_FLAG                      = "flag";
    public static final String  PARAMETER_REASONS_AND_SUBREASONS    = "reasonsAndSubreasons";
    public static final String  PARAMETER_ENTREGAS                  = "entregas";
    public static final String  PARAMETER_ENTREGAS_HISTORY          = "entregasHistory";
    public static final String  PARAMETER_LEGAJO_AYUDANTE           = "legajoAyudante";
    public static final String  PARAMETER_LEGAJOS                   = "legajos";
    // public static final String PARAMETER_MESSAGES_QUEUE = "messagesQueue";
    public static final String  PARAMETER_PENDING_QUEUE             = "pendingQueue";
    public static final String  PARAMETER_REASON                    = "reason";
    public static final String  PARAMETER_SECOND_REASON             = "secondReason";

    // --------------- Business Objects constants.
    public static final String  REASON_FLEPA_X                      = "X";

    // --------------- Web Services keys
    public static final String  WS_NAME_ZSDARE_ARE                  = "Z_SDARE_ARE";
    public static final String  WS_NAME_ZSDARE_MOTIVOS              = "Z_SDARE_MOTIVOS";
    public static final String  WS_NAME_ZSDARE_LEGAJOS              = "Z_SDARE_LEGAJOS";
    public static final String  WS_NAME_ZSDARE_ENTREGA              = "Z_SDARE_ENTREGAS";

//    public static final Object  WEB_SERVICES_USERNAME_WGIORDANO     = "wgiordano";
//    public static final Object  WEB_SERVICES_PASSWORD_WGIORDANO     = "wgi123";
  public static final Object  WEB_SERVICES_USERNAME               = "userws";
  public static final Object  WEB_SERVICES_PASSWORD               = "userws";
    // public static final Object WEB_SERVICES_USERNAME = "wgiordan";
    // public static final Object WEB_SERVICES_PASSWORD = "28992993wog";
    // public static final Object WEB_SERVICES_USERNAME = "java";
    // public static final Object WEB_SERVICES_PASSWORD = "toledo123";
//    public static final Object  WEB_SERVICES_USERNAME               = "kinexo";
//    public static final Object  WEB_SERVICES_PASSWORD               = "kinexo123";
    public static final String  WEB_SERVICES_DUMMY_VALUE            = "DuMmY";

    

    // --------------- Times
    public static final int     TIME_PERSIST_INTERVAL_THREAD        = 2 * 60 * 1000;                                     // 20"
    public static final int     NUMBER_OF_DAYS_BETWEEN_FILES_UPDATE = 10;
    public static final int     TIMES_TO_TRY_CALL_A_WEB_SERVICE     = 2;

    // --------------- File paths
    private static final String FILE_PATH_SDCARD_ROOT               = "/SDCard";
    public static final String  FILE_PATH_PERSISTENCE_QUEUE         = FILE_PATH_SDCARD_ROOT + "/persistenceQueue.xml";
    public static final String  FILE_PATH_DRIVERS                   = FILE_PATH_SDCARD_ROOT + "/drivers.xml";
    public static final String  FILE_PATH_ENTREGAS                  = FILE_PATH_SDCARD_ROOT + "/entregasPendientes.xml";
    public static final String  FILE_PATH_HISTORIAL_ENTREGAS        = FILE_PATH_SDCARD_ROOT + "/historialEntregas.xml";// TODO : Functionality : historialentregas
    public static final String  FILE_PATH_REASONS                   = FILE_PATH_SDCARD_ROOT + "/reasons.xml";

    

    

}
